﻿// -----------------------------------------------------------------------
// <copyright file="SubMenu.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Ex04.Menus.Delegates
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class SubMenu : Menu
    {
        public SubMenu(string i_Title)
            : base(i_Title)
        {
            this.SetBackOption();
        }

        private void SetBackOption()
        {
            this.AddMenuItem(new ActionMenu("Back to previous menu"));
        }
    }
}
